package com.cqut.dto;

import com.cqut.util.BeanUtil;
import com.cqut.model.CodeManager;
import java.io.Serializable;


public class CodeManagerDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private String codeNo;
        
        private String codeId;
        
        private String codeType;
        
        private String codeName;
        
        private Integer codeLevel;
        
        private String parentCode;
        
        public String getCodeNo() {
            return this.codeNo;
        }
        
        public void setCodeNo(String codeNo) {
            this.codeNo = codeNo;
        }
        
		public String getCodeId() {
			return codeId;
		}

		public void setCodeId(String codeId) {
			this.codeId = codeId;
		}
        
        public String getCodeType() {
            return this.codeType;
        }
        
        public void setCodeType(String codeType) {
            this.codeType = codeType;
        }
        
        public String getCodeName() {
            return this.codeName;
        }
        
        public void setCodeName(String codeName) {
            this.codeName = codeName;
        }
        
        public Integer getCodeLevel() {
            return this.codeLevel;
        }
        
        public void setCodeLevel(Integer codeLevel) {
            this.codeLevel = codeLevel;
        }
        
        public String getParentCode(){
        	return this.parentCode;
        }
        
        public void setParentCode(String parentCode){
        	this.parentCode = parentCode;
        }
        
        public CodeManager toModel() {
            CodeManager model = new CodeManager();
			BeanUtil.convert(this, model);
			return model;
        }

}